sshd[9217]: Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys
I made sure the entire .ssh subdir is owned by the user root (this is root's account);
chown -R root.root .ssh
chmod 600 .ssh/authorized_keys
but it still doesn't work and gives me the same message
sshd[7339]: Authentication refused: bad ownership or modes for directory /root
chmod 700 /root
#For some reason /root was not owned by root!
chown root.root /root
sshd, authentication, ownership, modes, ssh, authorized_keyssshd, authorized_keys, subdir, user, chown, chmod, doesn, directory,